package com.growthserver.service;


import com.growthserver.entity.TIntegralInfo;
import com.growthserver.entity.TMemberEntity;
import com.growthserver.entity.TTaskRuleEntity;
import com.growthserver.param.CommonParam;
import com.growthserver.param.IntegralParam;

import java.util.HashMap;
import java.util.List;

public interface AppletService {

    /**
     * 用户会员信息注册
     */
    void  memberRegistration(String userId,String userName);
    void  memberLogOff(String userId);
    void  updateUserType(String userId,String updateUserType);

    /**
     * 获取用户 等级,总成长值
     */
    TMemberEntity getUserLevel(String userId);

    /**
     *
     * @param userId
     * @return
     */
    List<HashMap<String,String>> getUserLevelList(List<String> userId);

    /**
     * 获取用户成长值明细
     */
     List<TIntegralInfo> getUserGrowth(CommonParam commonParam);

    /**
     * 获取用户总积分
     * @param userId
     * @return
     */
     String getTotalGrowthValue(String userId);

    /**
     * 获取用户等级对应权益
     */
     Object getUserLevelEquity(String userId);

    /**
     *
     * @param userId
     * @return
     */
     Object equityGrowthSliding(String userId);

    /**
     * 获取用户积分明细
     */
     List<TIntegralInfo> getUserIntegral(CommonParam commonParam);

    /**
     * 获取用户过期积分
     */
     String getWillExpIntegral(String userId);

    /**
     * 获取用户总积分
     */
    String getTotalIntegral(String userId);

    /**
     *  对外调用接口  被动
     *  签到,点赞,抽奖.....
     */
    List<HashMap<String,String>> growthRules(IntegralParam integralParam);

    /**
     * 活动任务规则时间获取
     * @param integralParam
     * @return
     */
    List<TTaskRuleEntity> taskRuleInActiveTime(IntegralParam integralParam);

     List<HashMap<String,String>> getIntegralBudgetNo(IntegralParam integralParam);

    /**
     *
     * @param integralParam
     * @return
     */
     void integralBudgetRelease(IntegralParam integralParam);

    /**
     *  积分预算单号剩余积分
     * @param integralParam
     */
     int getIntegralBudgetNoIntegral(IntegralParam integralParam);

    /**
     * 社区完成情况
     * @param integralParam
     * @return
     */
    List<Object> signInSquare(IntegralParam integralParam);

    /**
     * 查询用户或车主信息
     * @param integralParam 参数
     * @return 响应数据
     */
    List<TMemberEntity> selectMembersByLevel(IntegralParam integralParam);
}
